﻿<Window x:Class="CECB.Project.UpdateProj_BasicDtails"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="UpdateProj_BasicDtails"   xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
        Height="776" Width="1023" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded_2">
    <Grid Height="746" Width="823">
        <Grid.RowDefinitions>
            <RowDefinition Height="221*" />
            <RowDefinition Height="569*" />
        </Grid.RowDefinitions>
        <Rectangle Margin="-85,12,-75,30" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="3" Grid.RowSpan="2">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Label Content="Update Project Details" Height="50" HorizontalAlignment="Center" Margin="-63,5,662,154"  VerticalAlignment="Center" Width="224" FontSize="20" FontStretch="Normal" FontStyle="Normal" FontWeight="Black" Foreground="#FFEFEFEF"></Label>
        <StackPanel Margin="-67,38,622,52" Background="DimGray" OpacityMask="{x:Null}" Canvas.Left="-85" Canvas.Top="10" Grid.RowSpan="2">
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel Height="100" Name="wrapPanel2" Width="200" />
        </StackPanel>

        <StackPanel Margin="608,56,-75,183" Canvas.Left="306" Canvas.Top="12" Grid.RowSpan="2">
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel Orientation="Horizontal" Canvas.Left="35" Canvas.Top="324">
                <Label Content="Plan Image" Height="28" Width="78" Name="label_planImage" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                <WrapPanel Height="29" Name="wrapPanel4" Width="9"></WrapPanel>
                <Button Content="Update Plan  Image" Height="23" Name="button_UpdatePlanImage" Width="112" Click="button_UpdatePlanImage_Click" />
                <WrapPanel Height="157" Name="wrapPanel12" Width="358">
                    <Image Height="157" Name="image_plan" Stretch="Fill" Width="278" />
                </WrapPanel>
            </WrapPanel>
            <Label BorderBrush="White" BorderThickness="0" Content="Imge Model Info" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="37" Name="labelModelImg" Width="357" />
            <WrapPanel Orientation="Horizontal" Canvas.Left="35" Canvas.Top="324" Width="313">
                <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
            </WrapPanel>
            <WrapPanel Height="193" Name="wrapPanel3" Width="342">
                <WrapPanel Height="36" Name="wrapPanel13" Width="342">
                    <Label BorderBrush="White" BorderThickness="0" Content="Model Image" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label3" Width="95" />
                    <WrapPanel Height="29" Name="wrapPanel14" Width="8" />
                    <Button Content="Update Model Image" Height="23" Name="button_updateModelImage" Width="121" Click="button_updateModelImage_Click" />
                </WrapPanel>
                <Image Height="157" Name="image_model" Stretch="Fill" Width="278" />
            </WrapPanel>
        </StackPanel>
        <WrapPanel Height="49" Name="wrapPanel5" Canvas.Left="436" Canvas.Top="533" Margin="662,436,-89,52" Grid.Row="1">
            <WrapPanel Height="48" Name="wrapPanel10" Width="0" />
            <Button Content="Update" Height="49" Name="button_projUpdate" Width="76" Click="button_projUpdate_Click" />
        </WrapPanel>
        <WrapPanel VerticalAlignment="Top"  Background="#FF3E3832" Canvas.Left="35"  Canvas.Top="234" Margin="-63,141,632,0" Grid.Row="1" Height="62">
            <Label Content="Approving Agency" Height="33" Width="142" Name="label_appAgency" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox Name="textBox_appAgency" Width="241" TextWrapping="Wrap" VerticalAlignment="Top" Height="27" FontSize="16" Background="#FFFFECA1" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel VerticalAlignment="Top"  Background="#FF3E3832" Canvas.Left="35"  Canvas.Top="234" Margin="-63,77,632,0" Grid.Row="1">
            <Label Content="Consultent" Height="28" Width="145" Name="label_consultent" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox  Name="textBox_consltnt" Width="241" TextWrapping="Wrap" VerticalAlignment="Top" Height="28" FontSize="16" Background="#FFFFECA1" IsReadOnly="True" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <Label BorderBrush="White" BorderThickness="0" Content="Imge Plan Info" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Name="label_ImagePlanInfo" Margin="599,9,-103,161" />
        <Image Height="32" Margin="1035,12,-244,177" Source="/CECB;component/images/closeblack.png" Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown"/>
        <Expander Canvas.Left="38" Canvas.Top="367" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Header="More Location Details" IsEnabled="True" IsExpanded="True" Name="expander_locationDetails" Margin="-79,260,622,53" Grid.Row="1">
            <Grid Height="234" Width="426">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0*" />
                    <ColumnDefinition Width="343*" />
                    <ColumnDefinition Width="72" />
                </Grid.ColumnDefinitions>
                <WrapPanel Grid.Column="1" Grid.ColumnSpan="2" Margin="16,39,47,10" Orientation="Horizontal">
                    <TextBox Background="#FFFFECA1" FontSize="16" Foreground="#FF332F2F" GotFocus="textBox_longitude_GotFocus" Height="28" KeyDown="textBox_longitude_KeyDown" Name="textBox_longitude" SelectionBrush="#FF6E6E6E" TextChanged="textBox_longitude_TextChanged" Width="127" />
                    <TextBox Background="#FFFFECA1" FontSize="16" Foreground="#FF332F2F" GotFocus="textBox_latitude_GotFocus" Height="28" KeyDown="textBox_latitude_KeyDown" Name="textBox_latitude" SelectionBrush="#FF6E6E6E" TextChanged="textBox_latitude_TextChanged" Width="138" />
                    <Button Click="button_NewRecord_Click" Content="New" Height="23" Name="button_NewRecord" Width="127" />
                    <Button Click="button_RemoveRecord_Click" Content="Remove" Height="23" Name="button_RemoveRecord" Width="129" />
                    <ListView Canvas.Left="12" Canvas.Top="68" Height="110" Name="listView1" SelectionChanged="listView1_SelectionChanged" SelectionMode="Single" Width="267" Background="#FFFFECA1">
                        <ListView.View>
                            <GridView>
                                <GridViewColumn DisplayMemberBinding="{Binding Loc_longitude}" Header="Longitude" Width="130" />
                                <GridViewColumn DisplayMemberBinding="{Binding Loc_latitude}" Header="Latitude" Width="130" />
                            </GridView>
                        </ListView.View>
                    </ListView>
                </WrapPanel>
                <WrapPanel Background="#FF3E3832" Height="34" Margin="15,4,72,0" Orientation="Horizontal" VerticalAlignment="Top" Grid.Column="1">
                    <WrapPanel Height="21" Name="wrapPanel1" Width="4" />
                    <Label Content="Longitude" Foreground="White" Height="33" IsEnabled="True" Name="label1" Width="124" />
                    <Label Content="Latitude" Foreground="White" Height="33" IsEnabled="True" Name="label2" Width="104" />
                </WrapPanel>
            </Grid>
        </Expander>
        <WrapPanel Background="#FF3E3832" Canvas.Left="33" Canvas.Top="290" Orientation="Horizontal" Margin="-63,205,633,274" Grid.Row="1">
            <Label Content="Location" Height="28" Width="145" Name="label_location" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" Margin="25,0,0,0" />
            <TextBox Name="textBox_location" Width="240" TextWrapping="Wrap" Height="29" FontSize="16" Background="#FFFFECA1" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <GroupBox BorderBrush="White" BorderThickness="1" Canvas.Left="17" Canvas.Top="17" Foreground="White" Grid.RowSpan="2" Header="Project Type Parameter Details" Margin="214,53,224,53" Name="groupBox1">
            <StackPanel Height="572" Orientation="Vertical">
                <WrapPanel Background="#FF3E3832" Margin="0,10,0,0" Orientation="Horizontal" VerticalAlignment="Top">
                    <Label BorderBrush="White" BorderThickness="0" Content="Project Type" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="0,0,0,0" Name="label22" VerticalAlignment="Top" Width="124" />
                    <ComboBox Height="28" Name="comboBox_projectType" Width="194" FontSize="16" FontStyle="Italic" DisplayMemberPath="ptype_name" SelectedValuePath="ptype_reference" DropDownOpened="comboBox_projectType_DropDownOpened" SelectionChanged="comboBox_projectType_SelectionChanged" />
                    <Button Content="Add" Height="23" Name="button_projTypeAdd" Width="35" Click="button_projTypeAdd_Click" />
                    <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
                </WrapPanel>
                <GroupBox Header="Update Main Parmeters for the Project" Height="170" Name="groupBox2" Width="370">
                    <Grid Height="147">
                        <ListBox Height="121" HorizontalAlignment="Left" SelectedValuePath="mparam_reference" DisplayMemberPath="mparam_name" Margin="0,-2,0,0" Name="listBoxMainParam" VerticalAlignment="Top" Width="150" Background="#FFFFECA1"/>
                        <ListBox Height="117" HorizontalAlignment="Left" SelectedValuePath="mparam_reference" Background="#FFFFECA1" DisplayMemberPath="mparam_name" Margin="210,-3,0,0" Name="listBoxSelMainParam" VerticalAlignment="Top" Width="156" />
                        <Button Content="&gt;&gt;" Height="23" HorizontalAlignment="Left" Margin="156,6,0,0" Name="buttonMParAddAll" VerticalAlignment="Top" Width="48" Click="buttonMParAddAll_Click" />
                        <Button Content="&gt;" Height="23" HorizontalAlignment="Left" Margin="156,37,0,0" Name="buttonMParAdd" VerticalAlignment="Top" Width="48" Click="buttonMParAdd_Click" />
                        <Button Content="&lt;" Height="23" HorizontalAlignment="Left" Margin="156,67,0,0" Name="buttonMParRemove" VerticalAlignment="Top" Width="48" Click="buttonMParRemove_Click" />
                        <Button Content="&lt;&lt;" HorizontalAlignment="Left" Margin="156,94,0,28" Name="buttonMParRemoveAll" Width="48" Click="buttonMParRemoveAll_Click" />
                        <Button Content="Confirm" Height="23" HorizontalAlignment="Left" Margin="277,118,0,0" Name="buttonMParaConfirm" VerticalAlignment="Top" Width="75" Click="buttonMParaConfirm_Click" />
                        <Button Content="Customize Parameter Details" Height="23" HorizontalAlignment="Left" Margin="-2,120,0,0" Name="button_CustomizeParmDetails" VerticalAlignment="Top" Width="217" Click="button_CustomizeParmDetails_Click" />
                    </Grid>
                </GroupBox>
                <GroupBox Header="Insert values " Height="360" Name="groupBox4">
                    <Grid Height="313">
                        <DataGrid  AutoGenerateColumns="False" HorizontalAlignment="Left" Margin="-1,1,0,0" Background="#FFFFECA1" Name="dataGridSubParameter" Width="361" Height="312" VerticalAlignment="Top">
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding Mparam_name }" CanUserReorder="False" Header="MainParameter"  Width="150*" Foreground="Black"  />

                                <DataGridTextColumn Binding="{Binding SubPrm_name }" CanUserReorder="False" Header="Sub Parameter"  Width="170*" Foreground="Black"  />
                                <DataGridTextColumn   Binding="{Binding SubPrm_value }" CanUserReorder="False" Header="Value" Width="150*" Foreground="Black"/>
                                <DataGridTextColumn  Visibility="Hidden" Binding="{Binding SubPrm_ref }" CanUserReorder="False" Header="Value" Width="150*" Foreground="Black"/>

                            </DataGrid.Columns>

                        </DataGrid>

                    </Grid>
                </GroupBox>
            </StackPanel>
        </GroupBox>
        <WrapPanel Name="wrapPanel9" Height="129" Margin="608,279,-63,129" Grid.Row="1">
            <Label BorderBrush="White" BorderThickness="0" Content="Other Details" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" Name="label_othDetails" Width="360" />
            <TextBox Name="tbMultiLine" Background="#FFFFECA1" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" Width="272" Height="97"></TextBox>
        </WrapPanel>
        <Button Content="Delete" Height="44" Name="button_projdelete" Width="76" Click="button_projdelete_Click" Margin="810,436,-63,57" Grid.Row="1" />
        <WrapPanel Background="#FF3E3832" Canvas.Left="35" Canvas.Top="234" Margin="-64,88,633,67">
            <Label BorderBrush="White" BorderThickness="0" Content="Project Name" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="27" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label6" VerticalAlignment="Top" Width="230" />
            <toolkit:AutoCompleteBox Name="ProjctNameAutocompleteTextBox" Width="241.34" Height="35" ValueMemberPath="proj_name" FilterMode="Contains" ItemsSource="{Binding}" TabIndex="1" IsTabStop="True" FontSize="16" Background="White" Opacity="1" UseLayoutRounding="False" SelectionChanged="ReferenceTextBox_SelectionChanged" BorderBrush="#FFF8F8F8" BorderThickness="2">
                <toolkit:AutoCompleteBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Path=proj_name}" />
                            <TextBlock Text=" - " />
                            <TextBlock Text="{Binding Path=proj_reference}" />
                        </StackPanel>
                    </DataTemplate>
                </toolkit:AutoCompleteBox.ItemTemplate>
            </toolkit:AutoCompleteBox>
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel Background="#FF3E3832" Canvas.Left="35" Canvas.Top="234" Margin="-67,150,632,534" Grid.RowSpan="2">
            <Label Content="Project Catogory" Height="36" Width="142" Name="label_projcatogory" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <ComboBox Height="26" Name="comboBox_ProjectCatogry" FontSize="16" FontStyle="Italic" Width="245" DisplayMemberPath="cat_name" SelectedValuePath="cat_reference" DropDownOpened="comboBox_ProjectCatogry_DropDownOpened" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel Canvas.Left="35" Background="#FF3E3832" Canvas.Top="234" Margin="-65,10,632,471" Grid.Row="1">
            <Label Content="Client" Width="143" Height="28" Name="label_client" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox Name="textBox_client" Width="243" TextWrapping="Wrap" VerticalAlignment="Top" Height="28" FontSize="16" Background="#FFFFECA1" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <Image Height="32" Margin="854,23,-63,154" Source="/CECB;component/images/closeblack.png" Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown_1" />
        <WrapPanel Background="#FF3E3832" Canvas.Left="35" Canvas.Top="234" Height="38" Margin="-64,45,622,126">
            <Label BorderBrush="White" BorderThickness="0" Content="Project Reference" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="25,0,0,0" Name="label4" VerticalAlignment="Top" Width="130" />
            <Label Content="Project Refernce" Height="28" Width="99" Name="labelProjRef" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
        </WrapPanel>
    </Grid>
</Window>

